<!--validation-->
<script src="<?php echo base_url(); ?>system/application/resources/js/prototype.js" type="text/javascript"></script>
<script src="<?php echo base_url(); ?>system/application/resources/js/validation.js" type="text/javascript"></script>


<!-- [Content] start -->
<div class="content wide">
	<h1 id="edit">Insert new  Administrator</h1>
	<ul class="manage">
		<li><?php echo anchor('admin/admins/index', 'Administrators List');?></li>
	</ul>
	<br class="clearfloat" />
	<hr />

<p><?php echo $this->validation->error_string ?></p>
<?php echo form_open('admin/admins/insert',array('id'=>'form1', 'class'=>'login')); ?>
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="150"><strong>*First Name:</strong></td>
    <td><input name="first_name" id="first_name" type="text" value="<?php echo $this->validation->first_name ?>" class="required"/></td>
  </tr>
  <tr>
    <td><strong>*Last Name:</strong></td>
    <td><input name="last_name" id="last_name" type="text" value="<?php echo $this->validation->last_name ?>" class="required"/></td>
  </tr>
  <tr>
    <td><strong>*Email:</strong></td>
    <td><input name="email" id="email" type="text" value="<?php echo $this->validation->email ?>" class="required validate-email"/></td>
  </tr>
  <tr>
    <td><strong>*Telephone:</strong></td>
    <td><input name="phone" id="phone" type="text" value="<?php echo $this->validation->phone ?>" class="required" /></td>
  </tr>
  <tr>
    <td><strong>*Login:</strong></td>
    <td><input name="login" id="login" type="text" value="<?php echo $this->validation->login ?>" class="required" /></td>
  </tr>
  <tr>
    <td><strong>*Password:</strong></td>
    <td><input name="password" id="password" type="password" class="required" style="padding-left:20px; width:122px;" /></td>
  </tr>
	<tr>
		<td colspan="2" align="center">
        <br />
		<input type="hidden" name="subm_form" value="1"  />
		<input type="submit" name="submit" value="Save" id="submit" class="input-submit" />
		<input type="button" name="cancel" value="Cancel" id="cancel" class="input-submit" onClick="javascript: window.location.href='<?php echo base_url() ?>index.php?/admin/admins/index'" />		</td>
	</tr>
</table>
</form>

</div>
<script type="text/javascript">
     new Validation('form1'); // OR new Validation(document.forms[0]);
</script>

<!-- [Content] end -->
